class Layout : public ColumnType Defines an event layout
| | Layout (const LayoutInfo* info = 0) Default constructor |
| | Layout (const Type& type) Constructor |
| | Layout (const char* name) Constructor |
| | Layout (const std::string& name) Constructor |
| | Layout (const Layout& layout) Copy constructor |
| | ~Layout () Destructor |
| | operator= (const Layout& layout) Assignment operator |
| | operator== (const Layout& layout) const Equality operator |
| | operator!= (const Layout& layout) const Inequality operator |
| | IsRegistered () const Registered layout? |
| | GetRefCount () const Get reference count |
| | GetColumNum (const_data_ptr data) const Gets the column number of an event |
| | GetName (const_data_ptr data) const Gets the event name |
| | SetName (data_ptr data, const Name& name) Sets the event name |
| | GetTime (const_data_ptr data) const Gets the event time |
| | SetTime (data_ptr data, const Time& time) Sets the event time |
| | GetIfo (const_data_ptr data) const Gets the event ifo set |
| | SetIfo (data_ptr data, const ColumnType::ColumnIfo_t& ifo) Sets the event ifo set |
| | GetIfoStr (const_data_ptr data) const Gets the event ifo string |
| | SetIfoStr (data_ptr data, const char* ifo) Sets the event ifo set |
| | GetValue (const char* name, const_data_ptr data, Value& val) const Gets the column value of an event |
| | SetValue (const char* name, data_ptr& data, const Value& val) Sets the column value of an event |
| | SetType (const Type& type) Sets the event type |
| | GetType (Type& type) const Gets the event type |
| | IsCompatible (const Type& type) const Compatible type? |
| | GetColumnList () const Column information |
| | AddColumn (const ColumnInfo& col) Add a column |
| | AddColumn (const char* name, Enum type) Add a column |
| | RemoveColumn (const char* name) Remove a column |
| | GetColumn (const char* name) const Get a column |
| | DataSize () const Data block size |
| | Construct (data_ptr data, const_data_ptr init = 0) Construct event data |
| | Destruct (data_ptr data) Destruct event data |
| | Update (data_ptr& data) Update the event |
| | Compare (const_data_ptr d1, const_data_ptr d2) const Compares event data |
| | Swap (Layout& l) Swap a layout |
| | Register () Register the layout globaly |
| | Dump (std::ostream& os) const Dump column names to specified output stream. |
| | Dump () const Dump column names to specified output stream. |
| | DumpAll (std::ostream& os) Dump all registered layouts to specified output stream. |
| | DumpAll () Dump all registered layouts to specified output stream. |
| | GetSimple () Get "simple" layout |
| | GetStandard () Get "standard" layout |
| | GetCoincidence (int order = 2) Get "coincidence" layout |
| | GetCluster (int eventnum) Get "cluster" layout |
An event layout is used to describe an event. The layout basically contains a pointer to a event layout information record. A layout can be registered which means it points to a global event layout registered by the event factory. A registerd layout is read-only. A layout owns the layout information record if it isn't registered.
explicit Layout(const Type& type)
explicit Layout(const char* name)
explicit Layout(const std::string& name)
Layout(const Layout& layout)
~Layout()
Layout& operator= (const Layout& layout)
bool operator== (const Layout& layout) const
bool operator!= (const Layout& layout) const
bool IsRegistered() const
int GetRefCount() const
int GetColumNum(const_data_ptr data) const
Name GetName(const_data_ptr data) const
void SetName(data_ptr data, const Name& name)
Time GetTime(const_data_ptr data) const
void SetTime(data_ptr data, const Time& time)
ColumnType::ColumnIfo_t GetIfo(const_data_ptr data) const
void SetIfo(data_ptr data, const ColumnType::ColumnIfo_t& ifo)
std::string GetIfoStr(const_data_ptr data) const
void SetIfoStr(data_ptr data, const char* ifo)
bool GetValue(const char* name, const_data_ptr data, Value& val) const
data - Pointer to event data block
val - Return value (return)
bool SetValue(const char* name, data_ptr& data, const Value& val)
data - Pointer to event data block
val - Set value
bool SetType(const Type& type)
bool GetType(Type& type) const
bool IsCompatible(const Type& type) const
const ColumnInfoList& GetColumnList() const
bool AddColumn(const ColumnInfo& col)
bool AddColumn(const char* name, Enum type)
bool RemoveColumn(const char* name)
const ColumnInfo* GetColumn(const char* name) const
int DataSize() const
bool Construct(data_ptr data, const_data_ptr init = 0)
bool Destruct(data_ptr data)
bool Update(data_ptr& data)
bool Compare(const_data_ptr d1, const_data_ptr d2) const
void Swap(Layout& l)
bool Register()
void Dump(std::ostream& os) const
void Dump() const
static void DumpAll(std::ostream& os)
static void DumpAll()
static const Layout& GetSimple()
static const Layout& GetStandard()
static Layout GetCoincidence(int order = 2)
static Layout GetCluster(int eventnum)
alphabetic index hierarchy of classes
Please send questions and comments to sigg_d@ligo-wa.caltech.edu
generated by doc++