ConditionalOperatorExpression

/**
* 
* @brief DO class: This models both ConditionalOperator and BinaryConditionalOperator in Clang AST \n
BinaryConditionalOperator: The middle operand in a conditional expression may be omitted \n
e.g.: x ? : y see https://gcc.gnu.org/onlinedocs/gcc/Conditionals.html
*/

Inherit from Expression

Primary key: oid: int

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

ConditionalOperatorExpression::getKindName

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

ConditionalOperatorExpression::getAnAncestor

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

ConditionalOperatorExpression::getFalseExpression

/**
* @brief Return the subexpression which will be evaluated if the condition evaluates to false
* @return Expression
*/
pub fn getFalseExpression(self: ConditionalOperatorExpression) -> Expression;

ConditionalOperatorExpression::getParent

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

ConditionalOperatorExpression::getConditionExpression

/**
* @brief gets the condition expression oid of this element.
* @return Expression
*/
pub fn getConditionExpression(self: ConditionalOperatorExpression) -> Expression;

ConditionalOperatorExpression::getTrueExpression

/**
* @brief Return the subexpression which will be evaluated if the condition evaluates to true
* @return Expression
*/
pub fn getTrueExpression(self: ConditionalOperatorExpression) -> Expression;

ConditionalOperatorExpression::getParentOid

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

ConditionalOperatorExpression::getIndexOrder

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

ConditionalOperatorExpression::getLocationOid

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

ConditionalOperatorExpression::isMiddleOperandOmitted

/**
* @brief gets the is middle operand omitted of this element.
* @return int
*/
pub fn isMiddleOperandOmitted(self: ConditionalOperatorExpression) -> int;

ConditionalOperatorExpression::__all__

Data constraint method.

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

ConditionalOperatorExpression::getPrintableText

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

ConditionalOperatorExpression::getEnclosingCallable

/**
* @brief gets the immediately enclosing callable whose body contains this statement.
* @return Callable 
*/
pub fn getEnclosingCallable(self: ConditionalOperatorExpression) -> *Callable;

ConditionalOperatorExpression::getLocation

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