ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
CaDiCaL::Format Class Reference

#include <format.hpp>

Public Member Functions

 Format ()
 
 ~Format ()
 
const char * init (const char *fmt,...) CADICAL_ATTRIBUTE_FORMAT(2
 
const char const char * append (const char *fmt,...) CADICAL_ATTRIBUTE_FORMAT(2
 
const char const char operator const char * () const
 

Detailed Description

Definition at line 17 of file format.hpp.

Constructor & Destructor Documentation

◆ Format()

CaDiCaL::Format::Format ( )
inline

Definition at line 28 of file format.hpp.

28: buffer (0), count (0), size (0) {}

◆ ~Format()

CaDiCaL::Format::~Format ( )
inline

Definition at line 29 of file format.hpp.

29 {
30 if (buffer)
31 delete[] buffer;
32 }

Member Function Documentation

◆ append()

const char * CaDiCaL::Format::append ( const char * fmt,
... )

Definition at line 85 of file cadical_format.cpp.

85 {
86 va_list ap;
87 va_start (ap, fmt);
88 const char *res = add (fmt, ap);
89 va_end (ap);
90 return res;
91}

◆ init()

const char * CaDiCaL::Format::init ( const char * fmt,
... )

Definition at line 76 of file cadical_format.cpp.

76 {
77 count = 0;
78 va_list ap;
79 va_start (ap, fmt);
80 const char *res = add (fmt, ap);
81 va_end (ap);
82 return res;
83}

◆ operator const char *()

const char const char CaDiCaL::Format::operator const char * ( ) const
inline

Definition at line 35 of file format.hpp.

35{ return count ? buffer : 0; }

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