Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ShareBufferClass< T > Class Template Reference

#include <sharebuf.h>

Inherits W3DMPO, and RefCountClass.

Public Member Functions

 ShareBufferClass (int count, const char *msg)
 
 ShareBufferClass (const ShareBufferClass &that)
 
 ~ShareBufferClass (void)
 
T * Get_Array (void)
 
int Get_Count (void)
 
void Set_Element (int index, const T &thing)
 
const T & Get_Element (int index) const
 
T & Get_Element (int index)
 
void Clear (void)
 
- Public Member Functions inherited from W3DMPO
virtual ~W3DMPO ()
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 

Protected Member Functions

ShareBufferClassoperator= (const ShareBufferClass &)
 
- Protected Member Functions inherited from W3DMPO
virtual int glueEnforcer () const =0
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Protected Attributes

T * Array
 
int Count
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 

Detailed Description

template<class T>
class ShareBufferClass< T >

Definition at line 51 of file sharebuf.h.

Constructor & Destructor Documentation

◆ ShareBufferClass() [1/2]

template<class T>
ShareBufferClass< T >::ShareBufferClass ( int count,
const char * msg )

Definition at line 91 of file sharebuf.h.

◆ ShareBufferClass() [2/2]

template<class T>
ShareBufferClass< T >::ShareBufferClass ( const ShareBufferClass< T > & that)

Definition at line 102 of file sharebuf.h.

◆ ~ShareBufferClass()

template<class T>
ShareBufferClass< T >::~ShareBufferClass ( void )

Definition at line 116 of file sharebuf.h.

Member Function Documentation

◆ Clear()

template<class T>
void ShareBufferClass< T >::Clear ( void )

Definition at line 145 of file sharebuf.h.

◆ Get_Array()

template<class T>
T * ShareBufferClass< T >::Get_Array ( void )
inline

Definition at line 63 of file sharebuf.h.

◆ Get_Count()

template<class T>
int ShareBufferClass< T >::Get_Count ( void )
inline

Definition at line 64 of file sharebuf.h.

◆ Get_Element() [1/2]

template<class T>
T & ShareBufferClass< T >::Get_Element ( int index)

Definition at line 139 of file sharebuf.h.

◆ Get_Element() [2/2]

template<class T>
const T & ShareBufferClass< T >::Get_Element ( int index) const

Definition at line 133 of file sharebuf.h.

◆ operator=()

template<class T>
ShareBufferClass & ShareBufferClass< T >::operator= ( const ShareBufferClass< T > & )
protected

◆ Set_Element()

template<class T>
void ShareBufferClass< T >::Set_Element ( int index,
const T & thing )

Definition at line 125 of file sharebuf.h.

Member Data Documentation

◆ Array

template<class T>
T* ShareBufferClass< T >::Array
protected

Definition at line 83 of file sharebuf.h.

◆ Count

template<class T>
int ShareBufferClass< T >::Count
protected

Definition at line 84 of file sharebuf.h.


The documentation for this class was generated from the following files: