/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::UserFloatArray Class Reference

User-defined array of floating-point data. More...

#include <UserFloatArray.h>

Inheritance diagram for DayaBay::UserFloatArray:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::UserFloatArray:
Collaboration graph
[legend]

List of all members.

Public Types

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

 UserFloatArray (const std::string &name, const std::vector< float > &value)
 standard constructor
 UserFloatArray ()
 Default Constructor.
virtual ~UserFloatArray ()
 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< float > & value () const
 Retrieve const User-defined Value.
void setValue (const std::vector< float > &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< float > m_value
 User-defined Value.

Detailed Description

User-defined array of floating-point data.

Author:
dandwyer@caltech.edu created Thu Dec 5 17:41:15 2013

Definition at line 43 of file UserFloatArray.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.

                 { Unknown = 0,    // Undefined, indicates error
                   Float = 1,      // Floating-point value
                   FloatArray = 2, // Array of floating-point values
                   Int = 3,        // Integer value
                   IntArray = 4    // Array of integer values
      };

Constructor & Destructor Documentation

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

standard constructor

Definition at line 48 of file UserFloatArray.h.

DayaBay::UserFloatArray::UserFloatArray ( ) [inline]

Default Constructor.

Definition at line 53 of file UserFloatArray.h.

: m_value() {}
DayaBay::UserFloatArray::~UserFloatArray ( ) [virtual]

Default Destructor.

Definition at line 17 of file UserData.cc.

{
  ;  
}

Member Function Documentation

std::ostream & DayaBay::UserFloatArray::fillStream ( std::ostream &  s) const [inline, virtual]

Fill the ASCII output stream.

Reimplemented from DayaBay::UserData.

Definition at line 126 of file UserFloatArray.h.

{
  UserData::fillStream(s);
  s << "{ " << "value : " << m_value << std::endl << " }";
  return s;
}
DayaBay::UserData::DataType DayaBay::UserFloatArray::type ( ) const [inline, virtual]

Type of this user data field.

Reimplemented from DayaBay::UserData.

Definition at line 144 of file UserFloatArray.h.

const std::vector< float > & DayaBay::UserFloatArray::value ( ) const [inline]

Retrieve const User-defined Value.

Definition at line 134 of file UserFloatArray.h.

{
  return m_value;
}
void DayaBay::UserFloatArray::setValue ( const std::vector< float > &  value) [inline]

Update User-defined Value.

Definition at line 139 of file UserFloatArray.h.

{
  m_value = value;
}
static void* DayaBay::UserFloatArray::operator new ( size_t  size) [inline, static]

operator new

Reimplemented from DayaBay::UserData.

Definition at line 75 of file UserFloatArray.h.

    {
      return ( sizeof(UserFloatArray) == size ? 
               boost::singleton_pool<UserFloatArray, sizeof(UserFloatArray)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::UserFloatArray::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 UserFloatArray.h.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::UserFloatArray::operator delete ( void *  p) [inline, static]

operator delete

Reimplemented from DayaBay::UserData.

Definition at line 91 of file UserFloatArray.h.

    {
      boost::singleton_pool<UserFloatArray, sizeof(UserFloatArray)>::is_from(p) ?
      boost::singleton_pool<UserFloatArray, sizeof(UserFloatArray)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::UserFloatArray::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 UserFloatArray.h.

    {
      ::operator delete (p, pObj);
    }
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.

{
  return m_name;
}
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.

{
  m_name = value;
}

Member Data Documentation

std::vector<float> DayaBay::UserFloatArray::m_value [private]

User-defined Value.

Definition at line 109 of file UserFloatArray.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 Fri May 16 2014 09:58:45 for UserData by doxygen 1.7.4