| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::UserIntArray Class Reference

User-defined array of integer data. More...

#include <UserIntArray.h>

Inheritance diagram for DayaBay::UserIntArray:

[legend]
Collaboration diagram for DayaBay::UserIntArray:
[legend]
List of all members.

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.

Detailed Description

User-defined array of integer data.

Author:
dandwyer@caltech.edu created Mon Apr 11 03:30:17 2011

Definition at line 43 of file UserIntArray.h.


Member Enumeration Documentation

enum DayaBay::UserData::DataType [inherited]

The type of the user-defined data (float, int, vector, etc).

Enumerator:
Unknown 
Float 
FloatArray 
Int 
IntArray 

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       };


Constructor & Destructor Documentation

DayaBay::UserIntArray::UserIntArray ( const std::string &  name,
const std::vector< int > &  value 
) [inline]

standard constructor

Definition at line 48 of file UserIntArray.h.

00049                                               : UserData(name),
00050                                                   m_value(value) {}

DayaBay::UserIntArray::UserIntArray (  )  [inline]

Default Constructor.

Definition at line 53 of file UserIntArray.h.

00053 : m_value() {}

DayaBay::UserIntArray::~UserIntArray (  )  [virtual]

Default Destructor.

Definition at line 27 of file UserData.cc.

00028 {
00029   ;  
00030 }


Member Function Documentation

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]

Update User-defined Value.

Definition at line 139 of file UserIntArray.h.

00140 {
00141   m_value = value;
00142 }

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.

00086     {
00087       return ::operator new (size,pObj);
00088     }

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 }


Member Data Documentation

std::vector<int> DayaBay::UserIntArray::m_value [private]

User-defined Value.

Definition at line 109 of file UserIntArray.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:19:30 2011 for UserData by doxygen 1.4.7