mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
C++ API changes+fixes:
- context is now a pointer to make sure there's only one all the time - fixed a couple of double free's - some minor bug fixes
This commit is contained in:
@@ -33,15 +33,22 @@
|
||||
namespace pcp {
|
||||
|
||||
class PcpContext {
|
||||
private:
|
||||
bool iscopy;
|
||||
|
||||
public:
|
||||
PCPCTX *ptx;
|
||||
|
||||
// constructors
|
||||
PcpContext();
|
||||
|
||||
// clean up, wo don't do it in the destructor,
|
||||
// since it will be called multiple times otherwise
|
||||
void done();
|
||||
// destructor
|
||||
~PcpContext();
|
||||
|
||||
// copy constructor. holds the same pointer
|
||||
// as the original and doesn't free()
|
||||
PcpContext& operator = (const PcpContext *PTX);
|
||||
PcpContext(const PcpContext *PTX);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user