Develop Biology
The language of life
bio::chemical::AbstractMotif Class Reference

#include <AbstractMotif.h>

+ Inheritance diagram for bio::chemical::AbstractMotif:
+ Collaboration diagram for bio::chemical::AbstractMotif:

Public Member Functions

 AbstractMotif ()
 
virtual ~AbstractMotif ()
 
virtual void ClearImplementation ()
 
virtual ContainerGetAllImplementation ()
 
virtual const ContainerGetAllImplementation () const
 
virtual unsigned long GetCountImplementation () const
 
virtual std::string GetStringFromImplementation (std::string separator=", ")
 
virtual void ImportImplementation (const void *other)
 

Static Public Member Functions

static Properties GetClassProperties ()
 

Protected Attributes

Containerm_contents
 

Detailed Description

Definition at line 29 of file AbstractMotif.h.

Constructor & Destructor Documentation

◆ AbstractMotif()

bio::chemical::AbstractMotif::AbstractMotif ( )

Definition at line 35 of file AbstractMotif.cpp.

36 :
37 m_contents(NULL)
38{
39
40}

◆ ~AbstractMotif()

bio::chemical::AbstractMotif::~AbstractMotif ( )
virtual

Definition at line 42 of file AbstractMotif.cpp.

43{
44 if (m_contents)
45 {
46 delete m_contents;
47 m_contents = NULL;
48 }
49}

References m_contents.

Member Function Documentation

◆ ClearImplementation()

virtual void bio::chemical::AbstractMotif::ClearImplementation ( )
inlinevirtual

Clears the contents of *this.

Reimplemented in bio::chemical::LinearMotif< CONTENT_TYPE >, bio::chemical::LinearMotif< Organelle * >, bio::chemical::LinearMotif< genetic::Plasmid * >, bio::chemical::LinearMotif< Tissue * >, bio::chemical::LinearMotif< Organ * >, bio::chemical::LinearMotif< Cell * >, bio::chemical::LinearMotif< Substance * >, bio::chemical::LinearMotif< Symmetry * >, bio::chemical::LinearMotif< Plasmid * >, bio::chemical::LinearMotif< molecular::Protein * >, bio::chemical::LinearMotif< Gene * >, bio::chemical::LinearMotif< Surface * >, bio::chemical::LinearMotif< chemical::Reaction * >, bio::chemical::LinearMotif< Protein * >, bio::chemical::LinearMotif< Molecule * >, bio::chemical::LinearMotif< Organism * >, bio::chemical::LinearMotif< cellular::OrganSystem * >, bio::chemical::UnorderedMotif< CONTENT_TYPE >, bio::chemical::UnorderedMotif< Organelle * >, bio::chemical::UnorderedMotif< genetic::Plasmid * >, bio::chemical::UnorderedMotif< Tissue * >, bio::chemical::UnorderedMotif< Organ * >, bio::chemical::UnorderedMotif< Cell * >, bio::chemical::UnorderedMotif< Substance * >, bio::chemical::UnorderedMotif< Property >, bio::chemical::UnorderedMotif< State >, bio::chemical::UnorderedMotif< Symmetry * >, bio::chemical::UnorderedMotif< TranscriptionFactor >, bio::chemical::UnorderedMotif< Plasmid * >, bio::chemical::UnorderedMotif< molecular::Protein * >, bio::chemical::UnorderedMotif< Gene * >, bio::chemical::UnorderedMotif< Surface * >, bio::chemical::UnorderedMotif< chemical::Reaction * >, bio::chemical::UnorderedMotif< Protein * >, bio::chemical::UnorderedMotif< Molecule * >, bio::chemical::UnorderedMotif< Organism * >, and bio::chemical::UnorderedMotif< cellular::OrganSystem * >.

Definition at line 64 of file AbstractMotif.h.

65 {
66 //nop
67 }

◆ GetAllImplementation() [1/2]

Container * bio::chemical::AbstractMotif::GetAllImplementation ( )
virtual

Implementation for accessing all Contents.

Returns
all Contents in *this.

Definition at line 51 of file AbstractMotif.cpp.

52{
53 return this->m_contents;
54}

References m_contents.

Referenced by bio::chemical::LinearMotif< CONTENT_TYPE >::LinearMotif(), bio::chemical::UnorderedStructureInterface::GetAll(), and bio::chemical::UnorderedMotif< CONTENT_TYPE >::ImportImplementation().

◆ GetAllImplementation() [2/2]

const Container * bio::chemical::AbstractMotif::GetAllImplementation ( ) const
virtual

Const interface for accessing all Contents.

Returns
all Contents in *this.

Definition at line 56 of file AbstractMotif.cpp.

57{
58 return this->m_contents;
59}

References m_contents.

◆ GetClassProperties()

Properties bio::chemical::AbstractMotif::GetClassProperties ( )
static

◆ GetCountImplementation()

◆ GetStringFromImplementation()

virtual std::string bio::chemical::AbstractMotif::GetStringFromImplementation ( std::string  separator = ", ")
inlinevirtual

Get the Contents of *this as a string.

Parameters
separatore.g. ", ", the default, or just " ".
Returns
the Contents of *this as a string.

Reimplemented in bio::chemical::LinearMotif< CONTENT_TYPE >, bio::chemical::LinearMotif< Organelle * >, bio::chemical::LinearMotif< genetic::Plasmid * >, bio::chemical::LinearMotif< Tissue * >, bio::chemical::LinearMotif< Organ * >, bio::chemical::LinearMotif< Cell * >, bio::chemical::LinearMotif< Substance * >, bio::chemical::LinearMotif< Symmetry * >, bio::chemical::LinearMotif< Plasmid * >, bio::chemical::LinearMotif< molecular::Protein * >, bio::chemical::LinearMotif< Gene * >, bio::chemical::LinearMotif< Surface * >, bio::chemical::LinearMotif< chemical::Reaction * >, bio::chemical::LinearMotif< Protein * >, bio::chemical::LinearMotif< Molecule * >, bio::chemical::LinearMotif< Organism * >, bio::chemical::LinearMotif< cellular::OrganSystem * >, bio::chemical::UnorderedMotif< CONTENT_TYPE >, bio::chemical::UnorderedMotif< Organelle * >, bio::chemical::UnorderedMotif< genetic::Plasmid * >, bio::chemical::UnorderedMotif< Tissue * >, bio::chemical::UnorderedMotif< Organ * >, bio::chemical::UnorderedMotif< Cell * >, bio::chemical::UnorderedMotif< Substance * >, bio::chemical::UnorderedMotif< Property >, bio::chemical::UnorderedMotif< State >, bio::chemical::UnorderedMotif< Symmetry * >, bio::chemical::UnorderedMotif< TranscriptionFactor >, bio::chemical::UnorderedMotif< Plasmid * >, bio::chemical::UnorderedMotif< molecular::Protein * >, bio::chemical::UnorderedMotif< Gene * >, bio::chemical::UnorderedMotif< Surface * >, bio::chemical::UnorderedMotif< chemical::Reaction * >, bio::chemical::UnorderedMotif< Protein * >, bio::chemical::UnorderedMotif< Molecule * >, bio::chemical::UnorderedMotif< Organism * >, and bio::chemical::UnorderedMotif< cellular::OrganSystem * >.

Definition at line 93 of file AbstractMotif.h.

94 {
95 return "";
96 }

◆ ImportImplementation()

virtual void bio::chemical::AbstractMotif::ImportImplementation ( const void *  other)
inlinevirtual

Copy the contents of another container into this. void used to avoid ambiguous implicit casting.

Parameters
other

Definition at line 83 of file AbstractMotif.h.

84 {
85 //nop
86 }

Member Data Documentation

◆ m_contents

Container* bio::chemical::AbstractMotif::m_contents
mutableprotected

Definition at line 99 of file AbstractMotif.h.

Referenced by bio::chemical::LinearMotif< CONTENT_TYPE >::LinearMotif(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::UnorderedMotif(), ~AbstractMotif(), bio::chemical::LinearMotif< CONTENT_TYPE >::~LinearMotif(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::AddImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::AddImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::Attenuate(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::BIO_DISAMBIGUATE_ALL_CLASS_METHODS(), bio::chemical::LinearMotif< CONTENT_TYPE >::ClearImplementation(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::ClearImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::Disattenuate(), bio::chemical::LinearMotif< CONTENT_TYPE >::ForEachImplementation(), GetAllImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::GetByIdImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::GetByNameImplementation(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::GetCountImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::GetStringFromImplementation(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::GetStringFromImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::HasImplementation(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::HasImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::ImportImplementation(), bio::chemical::UnorderedMotif< CONTENT_TYPE >::ImportImplementation(), bio::chemical::LinearMotif< CONTENT_TYPE >::InsertImplementation(), and bio::chemical::UnorderedMotif< CONTENT_TYPE >::RemoveImplementation().


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