Utility

module. More...

Classes

class  Proud::CAngleFollower
 
class  Proud::ByteArray
 
class  Proud::ByteArrayPtr
 
class  Proud::CriticalSection
 
class  Proud::CriticalSectionLock
 The object that 'lock accesses' CriticalSection object. More...
 
class  Proud::CCryptoAes
 
class  Proud::CCryptoAesKey
 
class  Proud::CCryptoRsaKey
 
class  Proud::CCryptoRsa
 
class  Proud::ILogWriterDelegate
 
class  Proud::CDbLogParameter
 
class  Proud::CDbLogWriter
 
class  Proud::Deque< T >
 
class  Proud::Event
 
class  Proud::Exception
 
class  Proud::CArrayWithExternalBuffer< TYPE, TYPE_IN_REF, RAWTYPE, INDEXTYPE >
 
class  Proud::IClonable
 
class  Proud::Timer
 
class  Proud::Random
 
struct  FastArray_Traits< T, T_IN_REF >
 
struct  Proud::FastArray_Traits< T, true >
 
struct  Proud::FastArray_Traits< T, false >
 
class  Proud::CFastArray< T, T_IN_REF, RAWTYPE, INDEXTYPE >
 
class  Proud::CFastHeap
 
class  Proud::CFastHeapSettings
 
class  Proud::CFastList< E, ETraits >
 
class  Proud::CFastMap< K, V, KTraits, VTraits >
 
class  Proud::CFastSet< K, KTraits >
 
class  Proud::CFixedLengthArray< size, TYPE, ARG_TYPE >
 
class  Proud::CListNode< T >
 
class  Proud::CLookasideAllocator
 
class  Proud::CMilisecTimer
 
class  Proud::CRoundRobinNumberGenerator
 
class  Proud::CCrc
 
class  Proud::AnsiStrTraits
 
class  Proud::UnicodeStrTraits
 
class  Proud::StringT< XCHAR, StringTraits >
 
class  Proud::StrBufT< XCHAR, StringTraits >
 
class  Proud::StringTraitsT< XCHAR, StringTraits >
 
class  Proud::Thread
 
class  Proud::CPnTimeSpan
 
class  Proud::CPnTime
 
class  Proud::CPositionFollower
 
class  Proud::CFirstHeap
 
class  Proud::CProcHeap
 
class  Proud::CMemoryHeap
 
class  Proud::CHeldPtr< T >
 
class  Proud::SmartPtr< T >
 
class  Proud::RefCount< T >
 
class  Proud::CVirtualAllocPage< T >
 
class  Proud::CQuantizer
 
class  Proud::CRandom
 
class  Proud::Semaphore
 
class  Proud::CSingleton< T >
 
class  Proud::CStringEncoder
 
struct  Proud::PN_OVERLAPPED_ENTRY
 
class  Proud::CKernel32Api
 
class  Proud::CLocale
 
class  Proud::CSystemInfo
 
struct  Proud::NewTimerParam
 
class  Proud::CTimerQueue
 
class  Proud::CTimerQueueTimer
 
class  Proud::CTimerThread
 
struct  Proud::TimerEventHandle
 
class  Proud::CLogWriter
 
struct  Proud::Vector3T< FloatType >
 

Macros

#define XXXHeapChk   __noop
 
#define StringT2A   StringW2A
 
#define StringA2T   StringA2W
 
#define StringT2W(x)   (::Proud::String(x))
 
#define StringW2T(x)   (::Proud::String(x))
 

Typedefs

typedef RefCount< CCryptoRsaKey > Proud::CRsaKeyPtr
 
typedef uint16_t Proud::CryptCount
 
typedef RefCount
< CLookasideAllocator > 
Proud::CLookasideAllocatorPtr
 
typedef unsigned int Proud::Crc32
 
typedef char Proud::AnsiStrTraits::CharType
 
typedef wchar_t Proud::UnicodeStrTraits::CharType
 
typedef const StringT< XCHAR,
StringTraits > & 
Proud::StringTraitsT< XCHAR, StringTraits >::INARGTYPE
 
typedef StringT< XCHAR,
StringTraits > & 
Proud::StringTraitsT< XCHAR, StringTraits >::OUTARGTYPE
 
typedef StringT< char,
AnsiStrTraits > 
Proud::StringA
 
typedef StringT< wchar_t,
UnicodeStrTraits > 
Proud::StringW
 
typedef StringW Proud::String
 
typedef StrBufT< char,
AnsiStrTraits > 
Proud::StrBufA
 
typedef StrBufT< wchar_t,
UnicodeStrTraits > 
Proud::StrBufW
 
typedef StringTraitsT< char,
AnsiStrTraits > 
Proud::StringTraitsA
 
typedef StringTraitsT< wchar_t,
UnicodeStrTraits > 
Proud::StringTraitsW
 
typedef StringTraitsW Proud::StringTraits
 
typedef StrBufW Proud::StrBuf
 
typedef RefCount< Thread > Proud::ThreadPtr
 
typedef WINBASEAPI HANDLE(WINAPI * Proud::CreateIoCompletionPortProc )(HANDLE FileHandle, HANDLE ExistingCompletionPort, ULONG_PTR CompletionKey, uint32_t NumberOfConcurrentThreads)
 
typedef WINBASEAPI Proud::BOOL (WINAPI *HeapSetInformationProc)(HANDLE HeapHandle
 
typedef WINBASEAPI
HEAP_INFORMATION_CLASS 
Proud::HeapInformationClass
 
typedef WINBASEAPI
HEAP_INFORMATION_CLASS PVOID 
Proud::HeapInformation
 
typedef WINBASEAPI
HEAP_INFORMATION_CLASS PVOID
size_t 
Proud::HeapInformationLength
 
typedef WINBASEAPI PVOID Proud::Context
 
typedef WINBASEAPI PVOID uint32_t Proud::Flags
 
typedef WINBASEAPI LPDWORD Proud::lpNumberOfBytesTransferred
 
typedef WINBASEAPI LPDWORD
PULONG_PTR 
Proud::lpCompletionKey
 
typedef WINBASEAPI LPDWORD
PULONG_PTR LPOVERLAPPED * 
Proud::lpOverlapped
 
typedef WINBASEAPI LPDWORD
PULONG_PTR LPOVERLAPPED
uint32_t 
Proud::dwMilliseconds
 
typedef WINBASEAPI
PN_OVERLAPPED_ENTRY * 
Proud::lpCompletionPortEntries
 
typedef WINBASEAPI
PN_OVERLAPPED_ENTRY uint32_t 
Proud::ulCount
 
typedef WINBASEAPI
PN_OVERLAPPED_ENTRY uint32_t
PULONG 
Proud::ulNumEntriesRemoved
 
typedef WINBASEAPI
PN_OVERLAPPED_ENTRY uint32_t
PULONG uint32_t BOOL 
Proud::fAlertable
 
typedef WINBASEAPI Proud::PVOID (WINAPI *AddVectoredExceptionHandlerProc)(uint32_t FirstHandler
 
typedef WINBASEAPI
PVECTORED_EXCEPTION_HANDLER 
Proud::VectoredHandler
 
typedef WINBASEAPI BOOL(WINAPI * Proud::GetLogicalProcessorInformation )(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION Buffer, PDWORD ReturnLength)
 
typedef BOOLEAN Proud::TimerOrWaitFired
 
typedef WINBASEAPI Proud::HANDLE (WINAPI *CreateTimerQueueProc)(VOID)
 
typedef WINBASEAPI HANDLE Proud::TimerQueue
 
typedef WINBASEAPI HANDLE
WaitOrTimerCallbackProc 
Proud::Callback
 
typedef WINBASEAPI HANDLE
WaitOrTimerCallbackProc PVOID 
Proud::Parameter
 
typedef WINBASEAPI HANDLE
WaitOrTimerCallbackProc PVOID
uint32_t 
Proud::DueTime
 
typedef WINBASEAPI HANDLE
WaitOrTimerCallbackProc PVOID
uint32_t uint32_t 
Proud::Period
 
typedef WINBASEAPI HANDLE Proud::Timer
 
typedef WINBASEAPI HANDLE HANDLE Proud::CompletionEvent
 
typedef WINBASEAPI uint32_t Proud::dwSpinCount
 
typedef Vector3T< double > Proud::Vector3
 
typedef Vector3T< float > Proud::FloatVector3
 

Enumerations

enum  Proud::ExceptionType {
  Proud::ExceptionType_None = 0, Proud::ExceptionType_String, Proud::ExceptionType_Std, Proud::ExceptionType_ComError,
  Proud::ExceptionType_Void, Proud::ExceptionType_ErrorInfo, Proud::ExceptionType_Unhandled, Proud::ExceptionType_Clr
}
 
enum  Proud::GrowPolicy { Proud::GrowPolicy_Normal, Proud::GrowPolicy_HighSpeed, Proud::GrowPolicy_LowMemory }
 
enum  Proud::FastHeapAccessMode { Proud::FastHeapAccessMode_UnsafeSingleThread, Proud::FastHeapAccessMode_MultiThreaded }
 

Functions

PROUD_API void Proud::XXXHeapChkImpl (int index=1)
 
PROUD_API void Proud::ShowLibSignatureMismatchError ()
 
PROUD_API _Noreturn void Proud::ThrowArrayIsNullError ()
 
template<typename T >
T * Proud::FastHeap_NewInstance (CFastHeap *heap)
 
template<typename T >
void Proud::FastHeap_DeleteInstance (CFastHeap *heap, T *obj)
 
int64_t Proud::GetPreciseCurrentTimeMs ()
 
template<typename T >
Proud::Lerp (T v1, T v2, T ratio)
 
template<typename T >
Proud::LerpInt (T v1, T v2, T ratio1, T ratio2)
 
static int Proud::AnsiStrTraits::SafeStringLen (const CharType *str)
 
static void Proud::AnsiStrTraits::CopyString (CharType *dest, const CharType *src, int length)
 
static int Proud::AnsiStrTraits::StringCompare (const CharType *a, const CharType *b)
 
static int Proud::AnsiStrTraits::StringCompareNoCase (const CharType *a, const CharType *b)
 
static int Proud::AnsiStrTraits::GetFormattedLength (const char *pszFormat, va_list args)
 
static int __cdecl Proud::AnsiStrTraits::Format (char *pszBuffer, size_t nlength, const char *pszFormat, va_list args) throw ()
 
static char * Proud::AnsiStrTraits::StringUppercase (char *psz, size_t size) throw ()
 
static char * Proud::AnsiStrTraits::StringLowercase (char *psz, size_t size) throw ()
 
static const char *__cdecl Proud::AnsiStrTraits::StringFindString (const char *pszBlock, const char *pszMatch) throw ()
 
static char *__cdecl Proud::AnsiStrTraits::StringFindString (char *pszBlock, const char *pszMatch) throw ()
 
static const char *__cdecl Proud::AnsiStrTraits::StringFindChar (const char *pszBlock, char chMatch) throw ()
 
static int __cdecl Proud::AnsiStrTraits::StringSpanIncluding (const char *pszBlock, const char *pszSet) throw ()
 
static int __cdecl Proud::AnsiStrTraits::StringSpanExcluding (const char *pszBlock, const char *pszSet) throw ()
 
static char *__cdecl Proud::AnsiStrTraits::CharNext (const char *p) throw ()
 
static int __cdecl Proud::AnsiStrTraits::IsDigit (char ch) throw ()
 
static int __cdecl Proud::AnsiStrTraits::IsSpace (char ch) throw ()
 
static int Proud::UnicodeStrTraits::SafeStringLen (const CharType *str)
 
static void Proud::UnicodeStrTraits::CopyString (CharType *dest, const CharType *src, int length)
 
static int Proud::UnicodeStrTraits::StringCompare (const CharType *a, const CharType *b)
 
static int Proud::UnicodeStrTraits::StringCompareNoCase (const CharType *a, const CharType *b)
 
static int Proud::UnicodeStrTraits::GetFormattedLength (const wchar_t *pszFormat, va_list args)
 
static int __cdecl Proud::UnicodeStrTraits::Format (wchar_t *pszBuffer, size_t nLength, const wchar_t *pszFormat, va_list args) throw ( )
 
static wchar_t * Proud::UnicodeStrTraits::StringUppercase (wchar_t *psz, size_t size) throw ( )
 
static wchar_t * Proud::UnicodeStrTraits::StringLowercase (wchar_t *psz, size_t size) throw ( )
 
static const wchar_t *__cdecl Proud::UnicodeStrTraits::StringFindString (const wchar_t *pszBlock, const wchar_t *pszMatch) throw ( )
 
static wchar_t *__cdecl Proud::UnicodeStrTraits::StringFindString (wchar_t *pszBlock, const wchar_t *pszMatch) throw ( )
 
static const wchar_t *__cdecl Proud::UnicodeStrTraits::StringFindChar (const wchar_t *pszBlock, wchar_t chMatch) throw ( )
 
static int __cdecl Proud::UnicodeStrTraits::StringSpanIncluding (const wchar_t *pszBlock, const wchar_t *pszSet) throw ( )
 
static int __cdecl Proud::UnicodeStrTraits::StringSpanExcluding (const wchar_t *pszBlock, const wchar_t *pszSet) throw ( )
 
static wchar_t *__cdecl Proud::UnicodeStrTraits::CharNext (const wchar_t *psz) throw ( )
 
static int __cdecl Proud::UnicodeStrTraits::IsDigit (wchar_t ch) throw ()
 
static int __cdecl Proud::UnicodeStrTraits::IsSpace (wchar_t ch) throw ()
 
XCHAR * Proud::StringT< XCHAR, StringTraits >::Tombstone::GetBuffer ()
 
 Proud::StringT< XCHAR, StringTraits >::StringT ()
 
 Proud::StringT< XCHAR, StringTraits >::~StringT ()
 
 Proud::StringT< XCHAR, StringTraits >::StringT (const StringT &src)
 
 Proud::StringT< XCHAR, StringTraits >::StringT (const XCHAR *src, int length=0)
 
bool Proud::StringT< XCHAR, StringTraits >::IsEmpty () const
 
 Proud::StringT< XCHAR, StringTraits >::operator const XCHAR * () const
 
const XCHAR * Proud::StringT< XCHAR, StringTraits >::GetString () const
 
XCHAR * Proud::StringT< XCHAR, StringTraits >::GetBuffer (int length=0)
 
int Proud::StringT< XCHAR, StringTraits >::GetLength () const
 
void Proud::StringT< XCHAR, StringTraits >::SetLength (int length)
 
void Proud::StringT< XCHAR, StringTraits >::Append (const StringT &src)
 
void Proud::StringT< XCHAR, StringTraits >::Append (const XCHAR *src)
 
int Proud::StringT< XCHAR, StringTraits >::Compare (const StringT &src) const
 
int Proud::StringT< XCHAR, StringTraits >::Compare (const XCHAR *src) const
 
int Proud::StringT< XCHAR, StringTraits >::CompareNoCase (const StringT &src) const
 
int Proud::StringT< XCHAR, StringTraits >::CompareNoCase (const XCHAR *src) const
 
static StringT Proud::StringT< XCHAR, StringTraits >::NewFormat (const XCHAR *pszFormat,...)
 
void Proud::StringT< XCHAR, StringTraits >::Format (const XCHAR *pszFormat,...)
 
void Proud::StringT< XCHAR, StringTraits >::FormatV (const XCHAR *pszFormat, va_list args)
 
void Proud::StringT< XCHAR, StringTraits >::ReleaseBuffer ()
 
int Proud::StringT< XCHAR, StringTraits >::Replace (XCHAR chOld, XCHAR chNew)
 
int Proud::StringT< XCHAR, StringTraits >::Replace (const XCHAR *pszOld, const XCHAR *pszNew)
 
StringT & Proud::StringT< XCHAR, StringTraits >::MakeUpper ()
 
StringT & Proud::StringT< XCHAR, StringTraits >::MakeLower ()
 
bool Proud::StringT< XCHAR, StringTraits >::operator== (const StringT &src) const
 
bool Proud::StringT< XCHAR, StringTraits >::operator< (const StringT &src) const
 
bool Proud::StringT< XCHAR, StringTraits >::operator!= (const StringT &src) const
 
bool Proud::StringT< XCHAR, StringTraits >::operator== (const XCHAR *src) const
 
bool Proud::StringT< XCHAR, StringTraits >::operator!= (const XCHAR *src) const
 
StringT & Proud::StringT< XCHAR, StringTraits >::operator+= (const StringT &src)
 
StringT & Proud::StringT< XCHAR, StringTraits >::operator+= (const XCHAR *src)
 
StringT & Proud::StringT< XCHAR, StringTraits >::operator= (const StringT &src)
 
StringT & Proud::StringT< XCHAR, StringTraits >::operator= (const XCHAR *src)
 
int Proud::StringT< XCHAR, StringTraits >::Find (XCHAR ch, int iStart=0) const throw ()
 
int Proud::StringT< XCHAR, StringTraits >::Find (const XCHAR *pszSub, int iStart=0) const throw ()
 
StringT Proud::StringT< XCHAR, StringTraits >::Mid (int iFirst) const
 
StringT Proud::StringT< XCHAR, StringTraits >::Mid (int iFirst, int nCount) const
 
StringT Proud::StringT< XCHAR, StringTraits >::Right (int nCount) const
 
StringT Proud::StringT< XCHAR, StringTraits >::Left (int nCount) const
 
StringT Proud::StringT< XCHAR, StringTraits >::Tokenize (const XCHAR *pszTokens, int &iStart) const
 
StringT & Proud::StringT< XCHAR, StringTraits >::TrimRight ()
 
StringT & Proud::StringT< XCHAR, StringTraits >::TrimLeft ()
 
StringT & Proud::StringT< XCHAR, StringTraits >::Trim ()
 
StringT & Proud::StringT< XCHAR, StringTraits >::Trim (XCHAR chTarget)
 
StringT & Proud::StringT< XCHAR, StringTraits >::Trim (const XCHAR *pszTargets)
 
StringT & Proud::StringT< XCHAR, StringTraits >::TrimRight (XCHAR chTarget)
 
StringT & Proud::StringT< XCHAR, StringTraits >::TrimRight (const XCHAR *pszTargets)
 
StringT & Proud::StringT< XCHAR, StringTraits >::TrimLeft (XCHAR chTarget)
 
StringT & Proud::StringT< XCHAR, StringTraits >::TrimLeft (const XCHAR *pszTargets)
 
template<typename XCHAR , typename StringTraits >
StringT< XCHAR, StringTraits > Proud::operator+ (const StringT< XCHAR, StringTraits > &a, const StringT< XCHAR, StringTraits > &b)
 
template<typename XCHAR , typename StringTraits >
StringT< XCHAR, StringTraits > Proud::operator+ (const StringT< XCHAR, StringTraits > &a, const XCHAR *b)
 
template<typename XCHAR , typename StringTraits >
StringT< XCHAR, StringTraits > Proud::operator+ (const XCHAR *a, const StringT< XCHAR, StringTraits > &b)
 
 Proud::StrBufT< XCHAR, StringTraits >::StrBufT (StringT< XCHAR, StringTraits > &src, int maxLength=0)
 
 Proud::StrBufT< XCHAR, StringTraits >::operator XCHAR * ()
 
XCHAR * Proud::StrBufT< XCHAR, StringTraits >::GetBuf ()
 
static uint32_t __cdecl Proud::StringTraitsT< XCHAR, StringTraits >::Hash (INARGTYPE str)
 
static bool __cdecl Proud::StringTraitsT< XCHAR, StringTraits >::CompareElements (INARGTYPE str1, INARGTYPE str2)
 
static int __cdecl Proud::StringTraitsT< XCHAR, StringTraits >::CompareElementsOrdered (INARGTYPE str1, INARGTYPE str2)
 
StringA Proud::StringW2A (const wchar_t *src, CStringEncoder *encoder=NULL)
 
StringW Proud::StringA2W (const char *src, CStringEncoder *encoder=NULL)
 
template<typename T >
bool Proud::operator< (const CHeldPtr< T > a, const CHeldPtr< T > b)
 
template<typename T >
Proud::GetRandomElement (const CFastArray< T > &arr)
 
template<typename T >
Proud::GetRandomElement (const std::vector< T > &arr)
 
PROUD_API void Proud::iconv_string_convert (CStringEncoder *encoder, const char *input, size_t *inbytesleft, char *out, size_t *outbytesleft)
 
PROUD_API void Proud::USleep (long uSec)
 
PROUD_API uint32_t Proud::GetNoofProcessors ()
 
PROUD_API String Proud::GetProcessName ()
 
uint64_t Proud::GetCurrentThreadID ()
 
PROUD_API void Proud::ShowUserMisuseError (const PNTCHAR *text)
 
void Proud::TraceA (const char *format,...)
 
PROUD_API size_t Proud::GetOccupiedPhysicalMemory ()
 
PROUD_API size_t Proud::GetTotalPhysicalMemory ()
 
PROUD_API String Proud::GetComputerName ()
 
PROUD_API bool Proud::EnableLowFragmentationHeap ()
 
String Proud::GetCurrentProgramDirectory ()
 
PROUD_API void Proud::SetCurrentDirectoryWhereProgramExists ()
 
PROUD_API bool Proud::IsServiceMode ()
 
PROUD_API bool Proud::IsGqcsExSupported ()
 
PROUD_API bool Proud::IsHyperThreading ()
 
PROUD_API uint32_t Proud::CountSetBits (uintptr_t bitMask)
 
PROUD_API String Proud::GetFullPath (const PNTCHAR *fileName)
 
PROUD_API bool Proud::CreateFullDirectory (const PNTCHAR *lpPathName, String &outCreatedDirectory)
 
PROUD_API String Proud::GetCurrentDirectory ()
 
typedef Proud::VOID (NTAPI *WaitOrTimerCallbackProc)(PVOID lpParameter
 
bool Proud::GetWindowsVersion (DWORD &major, DWORD &minor, DWORD &servicePack)
 
PROUD_API int Proud::GetTotalThreadCount ()
 
PROUD_API DWORD Proud::GetThreadStatus (HANDLE const handle)
 
PROUD_API void Proud::SetThreadName (uint32_t dwThreadID, const char *szThreadName)
 
PROUD_API HANDLE Proud::GetCurrentRealThread ()
 
template<typename FloatType >
FloatType Proud::ScalarLerp (const FloatType v1, const FloatType v2, const FloatType ratio)
 
template<typename FloatType >
Vector3T< FloatType > Proud::operator* (FloatType scale, const struct Vector3T< FloatType > &src)
 

Variables

PROUD_API const char * Proud::ExternalBufferArrayIsUninitializedError
 
PROUD_API const char * Proud::ExternalBufferArrayIsInitializedError
 
const char * Proud::CannotUseFastHeapForFilledCollectionErrorText
 
int Proud::LibSignature
 
PROUD_API const char * Proud::ArrayPtrIsNullError
 
PROUD_API const char * Proud::ArrayPtrIsNotNullError
 
PROUD_API const char * Proud::MustInternalBufferError
 
PROUD_API const char * Proud::MustNotExternalBufferError
 
PROUD_API const char * Proud::MustUnsafeInternalBufferError
 
PROUD_API const char * Proud::AlreadyHasInternalBufferError
 
PROUD_API const char * Proud::AlreadyHasUnsafeInternalBufferError
 
PROUD_API const char * Proud::AlreadyHasExternalBufferError
 
static char * Proud::AnsiStrTraits::NullString
 
static wchar_t * Proud::UnicodeStrTraits::NullString
 
int Proud::StringT< XCHAR, StringTraits >::Tombstone::m_length
 
PROUDNET_VOLATILE_ALIGN intptr_t Proud::StringT< XCHAR, StringTraits >::Tombstone::m_refCount
 

Detailed Description

module.

Please refer to Utility Programs of ProudNet for more information of

Typedef Documentation

typedef StrBufT<char,AnsiStrTraits> Proud::StrBufA

Class for manipulating ANSI character text string buffer

typedef StrBufT<wchar_t,UnicodeStrTraits> Proud::StrBufW

Class for manipulating Unicode character text string bufferUnicode

typedef StringW Proud::String

It is a string class. The string is a wchar_t type that supports UTF-16 at Windows & Marmalade but at the other platforms, it is a char type string that supports UTF-8.

typedef StringT<char,AnsiStrTraits> Proud::StringA

ANSI character text string

typedef StringT<wchar_t,UnicodeStrTraits> Proud::StringW

Unicode character text string

typedef RefCount<Thread> Proud::ThreadPtr

Smart pointer of thread object.

Enumeration Type Documentation

Exception Type object

  • You can get pointer and information of exception object by classifying type.
Enumerator
ExceptionType_None 

None

ExceptionType_String 

Exception that created by Exception(LPCWSTR pFormat, ...);

ExceptionType_Std 

Exception that created by Exception(std::exception& src);

ExceptionType_ComError 

Exception that created by Exception(_com_error& src);

ExceptionType_Void 

Exception that created by Exception(void* src);

ExceptionType_ErrorInfo 

Exception that created by Exception(ErrorInfo* src);

ExceptionType_Unhandled 

UnhandleException that created by Exception()

ExceptionType_Clr 

TODO:translate needed.

This is how to access Fast Heap.

Enumerator
FastHeapAccessMode_UnsafeSingleThread 

Only 1 tread accesses to Fast Heap but the inside of Fast Heap is not Thread safe. This setting must be used when there is a guarantee that onl 1 thread accessed to Fast Heap.!

FastHeapAccessMode_MultiThreaded 

This operates safely even if multiple threads accee to Fast Heap. And has a way to utilize all of CPU cores.

The weight type when the size of the array of this object.

Enumerator
GrowPolicy_Normal 

Balance

GrowPolicy_HighSpeed 

High performance but use more memory

GrowPolicy_LowMemory 

Save memory but when array size is increased, it shows low performance because of overload of copying

Function Documentation

template<typename XCHAR, typename StringTraits>
void Proud::StringT< XCHAR, StringTraits >::Append ( const StringT< XCHAR, StringTraits > &  src)
inline

Adds another text string after text string

template<typename XCHAR, typename StringTraits>
void Proud::StringT< XCHAR, StringTraits >::Append ( const XCHAR *  src)
inline

Adds another text string to text string

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::Compare ( const StringT< XCHAR, StringTraits > &  src) const
inline

Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned).

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::Compare ( const XCHAR *  src) const
inline

Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned).

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::CompareNoCase ( const StringT< XCHAR, StringTraits > &  src) const
inline

Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned). But, not classify capital and small letter.

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::CompareNoCase ( const XCHAR *  src) const
inline

Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned). But, not classify capital and small letter.

PROUD_API uint32_t Proud::CountSetBits ( uintptr_t  bitMask)

TODO:translate needed.

PROUD_API bool Proud::CreateFullDirectory ( const PNTCHAR *  lpPathName,
String &  outCreatedDirectory 
)

TODO:translate needed.

PROUD_API bool Proud::EnableLowFragmentationHeap ( )

TODO:translate needed.

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::Find ( XCHAR  ch,
int  iStart = 0 
) const throw ()
inline

Finds the location of the character that is pointed by ch through searching from 'iStart'th character of text string. Returns -1 when not found.

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::Find ( const XCHAR *  pszSub,
int  iStart = 0 
) const throw ()
inline

Finds the location of the character that is pointed by pszSub through searching from 'iStart'th character of text string. Returns -1 when not found.

template<typename XCHAR, typename StringTraits>
void Proud::StringT< XCHAR, StringTraits >::Format ( const XCHAR *  pszFormat,
  ... 
)
inline

Creates text string as printf (Please refer Creating a string(format))

template<typename XCHAR, typename StringTraits>
void Proud::StringT< XCHAR, StringTraits >::FormatV ( const XCHAR *  pszFormat,
va_list  args 
)
inline

Creates text string as printf (Please refer Creating a string(format))

template<typename XCHAR, typename StringTraits>
XCHAR* Proud::StringT< XCHAR, StringTraits >::GetBuffer ( int  length = 0)
inline

Method used to access string pointer to read from and write to string data.

Proud::String a = L"abc";
wchar_t* pa = a.GetBuffer(100);
_wsprintf(pa, L"%d", 123);

Better usage example

Proud::String a = L"abc";
Proud::StrBuf pa(a, 100);
_wsprintf(pa, L"%d", 123);

Example for read-only access

Proud::String a = L"abc";
wchar_t* pa = a;
PROUD_API String Proud::GetComputerName ( )

TODO:translate needed.

PROUD_API String Proud::GetCurrentDirectory ( )

TODO:translate needed.

PROUD_API HANDLE Proud::GetCurrentRealThread ( )

Gets the real handle of this thread

uint64_t Proud::GetCurrentThreadID ( )
Returns current thread ID.
  • win32 kinds: same to ::GetCurrentThreadId().
  • unix kinds: same to pthread_self().
PROUD_API String Proud::GetFullPath ( const PNTCHAR *  fileName)

TODO:translate needed.

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::GetLength ( ) const
inline

Gets length of string.

Returns
length Number of characters if wchar_t is used, number of bytes if char is used, regardless of multibyte or unicode encoding.
PROUD_API size_t Proud::GetOccupiedPhysicalMemory ( )

TODO:translate needed.

int64_t Proud::GetPreciseCurrentTimeMs ( )

Gets very precise "current time". 1ms resolution. the time cost of this function is a critical section lock.

PROUD_API String Proud::GetProcessName ( )

TODO:translate needed.

template<typename XCHAR, typename StringTraits>
const XCHAR* Proud::StringT< XCHAR, StringTraits >::GetString ( ) const
inline

Let's read text string data

PROUD_API DWORD Proud::GetThreadStatus ( HANDLE const  handle)

Gain the condition of that thead currently.

PROUD_API size_t Proud::GetTotalPhysicalMemory ( )

TODO:translate needed.

PROUD_API int Proud::GetTotalThreadCount ( )

Gain the number of whole threads which is used in process now.

template<typename XCHAR, typename StringTraits>
bool Proud::StringT< XCHAR, StringTraits >::IsEmpty ( ) const
inline

Is it an empty string ?

PROUD_API bool Proud::IsGqcsExSupported ( )

TODO:translate needed.

PROUD_API bool Proud::IsHyperThreading ( )

TODO:translate needed.

PROUD_API bool Proud::IsServiceMode ( )

TODO:translate needed.

template<typename XCHAR, typename StringTraits>
StringT Proud::StringT< XCHAR, StringTraits >::Left ( int  nCount) const
inline

Returns the text stings that are collected from LHS to the point where the amount of characters become nCount in text string.

template<typename T >
T Proud::Lerp ( v1,
v2,
ratio 
)
inline

Obtains a interior division ratio of two values of v1,v2, v1->v2. As ratio gets closer to 0, it gets closer to v1.

template<typename T >
T Proud::LerpInt ( v1,
v2,
ratio1,
ratio2 
)
inline

TODO:translate needed.

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::MakeLower ( )
inline

De-capitalize text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::MakeUpper ( )
inline

Capitalizes text string

template<typename XCHAR, typename StringTraits>
StringT Proud::StringT< XCHAR, StringTraits >::Mid ( int  iFirst) const
inline

Returns the characters collected from the location where pointed by iFirst to the end in text string.

template<typename XCHAR, typename StringTraits>
StringT Proud::StringT< XCHAR, StringTraits >::Mid ( int  iFirst,
int  nCount 
) const
inline

Returns the characters collected from the location where pointed by iFirst to the point where the amount of characters become nCount in text string.

template<typename XCHAR, typename StringTraits>
Proud::StringT< XCHAR, StringTraits >::operator const XCHAR * ( ) const
inline
    Let's read text string data directly as shown below 
Proud::String a = L"abc";
const wchar_t *b = a; // Text sting pointer in object a is received by b.
template<typename XCHAR, typename StringTraits>
bool Proud::StringT< XCHAR, StringTraits >::operator!= ( const StringT< XCHAR, StringTraits > &  src) const
inline

Comparison operator

template<typename XCHAR, typename StringTraits>
bool Proud::StringT< XCHAR, StringTraits >::operator!= ( const XCHAR *  src) const
inline

Comparison operator

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::operator+= ( const StringT< XCHAR, StringTraits > &  src)
inline

Text string adding operator

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::operator+= ( const XCHAR *  src)
inline

Text string adding operator

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::operator= ( const StringT< XCHAR, StringTraits > &  src)
inline

String copy assignment operator

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::operator= ( const XCHAR *  src)
inline

String copy assignment operator

template<typename XCHAR, typename StringTraits>
bool Proud::StringT< XCHAR, StringTraits >::operator== ( const StringT< XCHAR, StringTraits > &  src) const
inline

Comparison operator

template<typename XCHAR, typename StringTraits>
bool Proud::StringT< XCHAR, StringTraits >::operator== ( const XCHAR *  src) const
inline

Comparison operator

template<typename XCHAR, typename StringTraits>
void Proud::StringT< XCHAR, StringTraits >::ReleaseBuffer ( )
inline

Once GetBuffer is called then this must end to finalize. Otherwise, the exact length of text string may not be acquired. Please refer GetBuffer description

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::Replace ( XCHAR  chOld,
XCHAR  chNew 
)
inline

Among text strings, replace the character pointed by chOld with the character pointed by chNew.

template<typename XCHAR, typename StringTraits>
int Proud::StringT< XCHAR, StringTraits >::Replace ( const XCHAR *  pszOld,
const XCHAR *  pszNew 
)
inline

Among text strings, replace the character pointed by pszOld with the character pointed by pszNew.

template<typename XCHAR, typename StringTraits>
StringT Proud::StringT< XCHAR, StringTraits >::Right ( int  nCount) const
inline

Returns the text stings that are collected from RHS to the point where the amount of characters become nCount in text string.

template<typename FloatType >
FloatType Proud::ScalarLerp ( const FloatType  v1,
const FloatType  v2,
const FloatType  ratio 
)
inline

Get a ratio of interior division of v1 and v2 by v1 -> v2. As ratio is closer to 0, it's closer to v1.

PROUD_API void Proud::SetCurrentDirectoryWhereProgramExists ( )

TODO:translate needed.

template<typename XCHAR, typename StringTraits>
void Proud::StringT< XCHAR, StringTraits >::SetLength ( int  length)
inline

Re-modifies the length of text string

Parameters
lengthNumber of characters if wchar_t is used, number of bytes if char is used, regardless of multibyte or unicode encoding.
PROUD_API void Proud::SetThreadName ( uint32_t  dwThreadID,
const char *  szThreadName 
)

Designates a name to thread. By doing so, each thread will have their names shown at debugger thread view.

  • Debugging will be easier.
  • Please refer ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/vsdebug/html/vxtskSettingThreadName.htm
PROUD_API void Proud::ShowUserMisuseError ( const PNTCHAR *  text)

TODO:translate needed.

template<typename XCHAR, typename StringTraits>
Proud::StringT< XCHAR, StringTraits >::StringT ( )
inline

Constructor

template<typename XCHAR, typename StringTraits>
Proud::StringT< XCHAR, StringTraits >::StringT ( const StringT< XCHAR, StringTraits > &  src)
inline

Gets string that pointed by src

template<typename XCHAR, typename StringTraits>
Proud::StringT< XCHAR, StringTraits >::StringT ( const XCHAR *  src,
int  length = 0 
)
inline

Gets a string

StringA Proud::StringW2A ( const wchar_t *  src,
CStringEncoder *  encoder = NULL 
)

Convert to String Function

template<typename XCHAR, typename StringTraits>
StringT Proud::StringT< XCHAR, StringTraits >::Tokenize ( const XCHAR *  pszTokens,
int &  iStart 
) const
inline

Collects the text strings distinguished by distinguishers pointed by ofpszToken one by one then returns them one by one.

Usage example

Proud::String str(L"%First Second#Third");
Proud::String resToken;
int curPos = 0;
resToken= str.Tokenize(L"% #",curPos);
while (resToken != L"")
{
_tprintf_s(L"Resulting token: %s\n", resToken);
resToken = str.Tokenize(L"% #", curPos);
};
void Proud::TraceA ( const char *  format,
  ... 
)

Prints text for debugging to debugger output window or console, without newline.

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::Trim ( )
inline

Cuts off the empty characters are left at RHS end and at LHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::Trim ( XCHAR  chTarget)
inline

Cuts off the characters pointed by chTarget and are left at RHS end and at LHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::Trim ( const XCHAR *  pszTargets)
inline

Cuts off the characters pointed by pszTargets and are left at RHS end and at LHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::TrimLeft ( )
inline

Cuts off the empty characters are left at LHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::TrimLeft ( XCHAR  chTarget)
inline

Cuts off the characters pointed by chTarget and are left at LHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::TrimLeft ( const XCHAR *  pszTargets)
inline

Cuts off the characters pointed by pszTargets and are left at RHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::TrimRight ( )
inline

Cuts off the empty characters are left at RHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::TrimRight ( XCHAR  chTarget)
inline

Cuts off the characters pointed by chTarget and are left at RHS end of text string

template<typename XCHAR, typename StringTraits>
StringT& Proud::StringT< XCHAR, StringTraits >::TrimRight ( const XCHAR *  pszTargets)
inline

uts off the characters pointed by pszTargets and are left at RHS end of text string

typedef Proud::VOID ( NTAPI *  WaitOrTimerCallbackProc)

Timer user callback function

  • An application-defined function that serves as the starting address for a timer callback or a registered wait callback. Specify this address when calling the CreateTimerQueueTimer, RegisterWaitForSingleObject function.

The WaitOrTimerCallbackProc type defines a pointer to this callback function. WaitOrTimerCallback is a placeholder for the application-defined function name.

Parameters
[in]lpParameterThe thread data passed to the function using a parameter of the CreateTimerQueueTimer or RegisterWaitForSingleObject function.
TimerOrWaitFiredIf this parameter is TRUE, the wait timed out. If this parameter is FALSE, the wait event has been signaled. (This parameter is always TRUE for timer callbacks.)
template<typename XCHAR, typename StringTraits>
Proud::StringT< XCHAR, StringTraits >::~StringT ( )
inline

Destructor