Z3
Loading...
Searching...
No Matches
constructor_list Class Reference

#include <z3++.h>

Public Member Functions

 constructor_list (constructors const &cs)
 ~constructor_list ()
 operator Z3_constructor_list () const

Detailed Description

Definition at line 3939 of file z3++.h.

Constructor & Destructor Documentation

◆ constructor_list()

constructor_list ( constructors const & cs)
inline

Definition at line 3993 of file z3++.h.

3993 : ctx(cs.ctx) {
3994 array<Z3_constructor> cons(cs.size());
3995 for (unsigned i = 0; i < cs.size(); ++i)
3996 cons[i] = cs[i];
3997 clist = Z3_mk_constructor_list(ctx, cs.size(), cons.ptr());
3998 }
Z3_constructor_list Z3_API Z3_mk_constructor_list(Z3_context c, unsigned num_constructors, Z3_constructor const constructors[])
Create list of constructors.

◆ ~constructor_list()

~constructor_list ( )
inline

Definition at line 3944 of file z3++.h.

3944{ Z3_del_constructor_list(ctx, clist); }
void Z3_API Z3_del_constructor_list(Z3_context c, Z3_constructor_list clist)
Reclaim memory allocated for constructor list.

Member Function Documentation

◆ operator Z3_constructor_list()

operator Z3_constructor_list ( ) const
inline

Definition at line 3945 of file z3++.h.

3945{ return clist; }