Declaration

/**
* @brief A super class for all declarations.
*/

Inherit from DeclarationDO

Primary key: oid: int

schema Declaration extends DeclarationDO {
  @primary oid: int,
  parent_oid: int,
  index_order: int,
  location_oid: int,
  kind_name: string,
  printable_text: string
}

Declaration::getLocationOid

/**
* @brief gets the location oid of this element.
* @return int
*/
pub fn getLocationOid(self: Declaration) -> int;

Declaration::getIndexOrder

/**
* @brief gets the index order of this element.
* @return int
*/
pub fn getIndexOrder(self: Declaration) -> int;

Declaration::getParentOid

/**
* @brief gets the parent oid of this element.
* @return int
*/
pub fn getParentOid(self: Declaration) -> int;

Declaration::getPrintableText

/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
pub fn getPrintableText(self: Declaration) -> string;

Declaration::__all__

Data constraint method.

pub fn __all__(db: CfamilyDB) -> *Declaration;

Declaration::getLocation

/**
* @brief gets the location for the element.
* @return Location
*/
pub fn getLocation(self: Declaration) -> Location;

Declaration::getAnAncestor

/**
* @brief gets an ancestor of the element.
* @return ElementParent 
*/
pub fn getAnAncestor(self: Declaration) -> *ElementParent;

Declaration::getKindName

/**
* @brief Declaration kind name
* @return string
*/
pub fn getKindName(self: Declaration) -> string;

Declaration::getParent

/**
* @brief gets the parent element of the declaration
* @return ElementParent 
*/
pub fn getParent(self: Declaration) -> ElementParent;