#include <UserIntArray.h>
Inheritance diagram for DayaBay::UserIntArray:
Public Types | |
Unknown = 0 | |
Float = 1 | |
FloatArray = 2 | |
Int = 3 | |
IntArray = 4 | |
enum | DataType { Unknown = 0, Float = 1, FloatArray = 2, Int = 3, IntArray = 4 } |
The type of the user-defined data (float, int, vector, etc). More... | |
Public Member Functions | |
UserIntArray (const std::string &name, const std::vector< int > &value) | |
standard constructor | |
UserIntArray () | |
Default Constructor. | |
virtual | ~UserIntArray () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
virtual UserData::DataType | type () const |
Type of this user data field. | |
const std::vector< int > & | value () const |
Retrieve const User-defined Value. | |
void | setValue (const std::vector< int > &value) |
Update User-defined Value. | |
const std::string & | name () const |
Retrieve const Name of this user data field. | |
void | setName (const std::string &value) |
Update Name of this user data field. | |
Static Public Member Functions | |
static void * | operator new (size_t size) |
operator new | |
static void * | operator new (size_t size, void *pObj) |
placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
static void | operator delete (void *p) |
operator delete | |
static void | operator delete (void *p, void *pObj) |
placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
std::vector< int > | m_value |
User-defined Value. |
Definition at line 43 of file UserIntArray.h.
enum DayaBay::UserData::DataType [inherited] |
The type of the user-defined data (float, int, vector, etc).
Definition at line 47 of file UserData.h.
00047 { Unknown = 0, // Undefined, indicates error 00048 Float = 1, // Floating-point value 00049 FloatArray = 2, // Array of floating-point values 00050 Int = 3, // Integer value 00051 IntArray = 4 // Array of integer values 00052 };
DayaBay::UserIntArray::UserIntArray | ( | const std::string & | name, | |
const std::vector< int > & | value | |||
) | [inline] |
DayaBay::UserIntArray::UserIntArray | ( | ) | [inline] |
DayaBay::UserIntArray::~UserIntArray | ( | ) | [virtual] |
std::ostream & DayaBay::UserIntArray::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::UserData.
Definition at line 126 of file UserIntArray.h.
00127 { 00128 UserData::fillStream(s); 00129 s << "{ " << "value : " << m_value << std::endl << " }"; 00130 return s; 00131 }
DayaBay::UserData::DataType DayaBay::UserIntArray::type | ( | ) | const [inline, virtual] |
Type of this user data field.
Reimplemented from DayaBay::UserData.
Definition at line 144 of file UserIntArray.h.
00145 { 00146 return DayaBay::UserData::IntArray; 00147 }
const std::vector< int > & DayaBay::UserIntArray::value | ( | ) | const [inline] |
Retrieve const User-defined Value.
Definition at line 134 of file UserIntArray.h.
00135 { 00136 return m_value; 00137 }
void DayaBay::UserIntArray::setValue | ( | const std::vector< int > & | value | ) | [inline] |
static void* DayaBay::UserIntArray::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::UserData.
Definition at line 75 of file UserIntArray.h.
00076 { 00077 return ( sizeof(UserIntArray) == size ? 00078 boost::singleton_pool<UserIntArray, sizeof(UserIntArray)>::malloc() : 00079 ::operator new(size) ); 00080 }
static void* DayaBay::UserIntArray::operator new | ( | size_t | size, | |
void * | pObj | |||
) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Reimplemented from DayaBay::UserData.
Definition at line 85 of file UserIntArray.h.
static void DayaBay::UserIntArray::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::UserData.
Definition at line 91 of file UserIntArray.h.
00092 { 00093 boost::singleton_pool<UserIntArray, sizeof(UserIntArray)>::is_from(p) ? 00094 boost::singleton_pool<UserIntArray, sizeof(UserIntArray)>::free(p) : 00095 ::operator delete(p); 00096 }
static void DayaBay::UserIntArray::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::UserData.
Definition at line 100 of file UserIntArray.h.
00101 { 00102 ::operator delete (p, pObj); 00103 }
const std::string & DayaBay::UserData::name | ( | ) | const [inline, inherited] |
Retrieve const Name of this user data field.
Definition at line 150 of file UserData.h.
00151 { 00152 return m_name; 00153 }
void DayaBay::UserData::setName | ( | const std::string & | value | ) | [inline, inherited] |
Update Name of this user data field.
Definition at line 155 of file UserData.h.
00156 { 00157 m_name = value; 00158 }
std::vector<int> DayaBay::UserIntArray::m_value [private] |