Clingo
Loading...
Searching...
No Matches

Inspect search and problem stats. More...

Classes

class  Clingo::ConstStats
 Class modeling an immutable view on a statistics entry. More...
 
class  Clingo::Stats
 Class modeling a mutable view on a statistics entry. More...
 
class  Clingo::ConstStatsArray
 Class modeling an immutable view on an array of statistics entries. More...
 
class  Clingo::StatsArray
 Class modeling a mutable view on an array of statistics entries. More...
 
class  Clingo::ConstStatsMap
 Class modeling an immutable view on a map of statistics entries. More...
 
class  Clingo::StatsMap
 Class modeling a mutable view on a map of statistics entries. More...
 

Enumerations

enum class  Clingo::StatsType : clingo_stats_type_t { StatsType::value = clingo_stats_type_value , StatsType::array = clingo_stats_type_array , StatsType::map = clingo_stats_type_map }
 Enumeration of statistics types. More...
 

Functions

auto Clingo::ConstStats::array () const -> ConstStatsArray
 Get a view on the array of statistics entries if the entry is an array.
 
auto Clingo::ConstStats::at (size_t index) const -> ConstStats
 Get a statistics entry at the given index if the entry is an array.
 
auto Clingo::Stats::array () const -> StatsArray
 Get a view on the array of statistics entries if the entry is an array.
 
auto Clingo::Stats::at (size_t index) const -> Stats
 Get a statistics entry at the given index if the entry is an array.
 
auto Clingo::ConstStats::map () const -> ConstStatsMap
 Get a view on the map of statistics entries if the entry is a map.
 
auto Clingo::ConstStats::get (std::string_view name) const -> ConstStats
 Get a statistics entry with the given name if the entry is a map.
 
auto Clingo::Stats::map () const -> StatsMap
 Get a view on the map of statistics entries if the entry is a map.
 
auto Clingo::Stats::get (std::string_view name) const -> Stats
 Get a statistics entry with the given name if the entry is a map.
 

Detailed Description

Inspect search and problem stats.

Enumeration Type Documentation

◆ StatsType

Enumeration of statistics types.

Enumerator
value 

The statistics entry holds a value.

array 

The statistics entry holds an array.

map 

The statistics entry holds map.

Function Documentation

◆ array() [1/2]

auto Clingo::ConstStats::array ( ) const -> ConstStatsArray
inline

Get a view on the array of statistics entries if the entry is an array.

Returns
a view on the array of statistics entries

◆ array() [2/2]

auto Clingo::Stats::array ( ) const -> StatsArray
inline

Get a view on the array of statistics entries if the entry is an array.

Returns
a view on the array of statistics entries

◆ at() [1/2]

auto Clingo::ConstStats::at ( size_t  index) const -> ConstStats
inline

Get a statistics entry at the given index if the entry is an array.

Parameters
indexthe index of the statistics entry to get
Returns
a statistics entry at the given index

◆ at() [2/2]

auto Clingo::Stats::at ( size_t  index) const -> Stats
inline

Get a statistics entry at the given index if the entry is an array.

Parameters
indexthe index of the statistics entry to get
Returns
a statistics entry at the given index

◆ get() [1/2]

auto Clingo::ConstStats::get ( std::string_view  name) const -> ConstStats
inline

Get a statistics entry with the given name if the entry is a map.

Parameters
namethe name of the statistics entry to get
Returns
a statistics entry with the given name

◆ get() [2/2]

auto Clingo::Stats::get ( std::string_view  name) const -> Stats
inline

Get a statistics entry with the given name if the entry is a map.

Parameters
namethe name of the statistics entry to get
Returns
a statistics entry with the given name

◆ map() [1/2]

auto Clingo::ConstStats::map ( ) const -> ConstStatsMap
inline

Get a view on the map of statistics entries if the entry is a map.

Returns
a view on the map of statistics entries

◆ map() [2/2]

auto Clingo::Stats::map ( ) const -> StatsMap
inline

Get a view on the map of statistics entries if the entry is a map.

Returns
a view on the map of statistics entries