SourceForge.net Logo
Result Class Reference

A scoped pointer wrapper for the lazily evaluated query result. More...

#include <Result.hpp>

Public Member Functions

 Result (const Item::Ptr &item)
 
 Result (const Sequence &seq)
 
 Result (ResultImpl *impl)
 
 Result (const Result &o)
 
Resultoperator= (const Result &o)
 
 ~Result ()
 
ResultImploperator-> ()
 Returns the underlying ResultImpl object.
 
const ResultImploperator-> () const
 Returns the underlying ResultImpl object.
 
ResultImplget ()
 Returns the underlying ResultImpl object.
 
const ResultImplget () const
 Returns the underlying ResultImpl object.
 
bool isNull () const
 Returns true if the underlying pointer is null.
 
EmptyResult * getEmpty () const
 

Detailed Description

A scoped pointer wrapper for the lazily evaluated query result.

Examples
simple-basic.cpp, and simple-context-item.cpp.

Constructor & Destructor Documentation

◆ Result() [1/4]

Result::Result ( const Item::Ptr & item)

Referenced by operator=(), and Result().

◆ Result() [2/4]

Result::Result ( const Sequence & seq)

◆ Result() [3/4]

Result::Result ( ResultImpl * impl)

◆ Result() [4/4]

Result::Result ( const Result & o)

References Result().

◆ ~Result()

Result::~Result ( )

References get(), isNull(), and operator->().

Member Function Documentation

◆ get() [1/2]

ResultImpl * Result::get ( )
inline

Returns the underlying ResultImpl object.

References getEmpty().

Referenced by operator->(), operator->(), and ~Result().

◆ get() [2/2]

const ResultImpl * Result::get ( ) const
inline

Returns the underlying ResultImpl object.

References getEmpty().

◆ getEmpty()

EmptyResult * Result::getEmpty ( ) const

Referenced by get(), and get().

◆ isNull()

bool Result::isNull ( ) const
inline

Returns true if the underlying pointer is null.

Referenced by ~Result().

◆ operator->() [1/2]

ResultImpl * Result::operator-> ( )
inline

Returns the underlying ResultImpl object.

References get().

Referenced by ~Result().

◆ operator->() [2/2]

const ResultImpl * Result::operator-> ( ) const
inline

Returns the underlying ResultImpl object.

References get().

◆ operator=()

Result & Result::operator= ( const Result & o)

References Result().


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