spot
0.9.1
|
00001 // -*- coding: utf-8 -*- 00002 // Copyright (C) 2010, 2012 Laboratoire de Recherche de Developpement 00003 // de l'EPITA (LRDE). 00004 // Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris 00005 // 6 (LIP6), département Systèmes Répartis Coopératifs (SRC), 00006 // Université Pierre et Marie Curie. 00007 // 00008 // This file is part of Spot, a model checking library. 00009 // 00010 // Spot is free software; you can redistribute it and/or modify it 00011 // under the terms of the GNU General Public License as published by 00012 // the Free Software Foundation; either version 2 of the License, or 00013 // (at your option) any later version. 00014 // 00015 // Spot is distributed in the hope that it will be useful, but WITHOUT 00016 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00017 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00018 // License for more details. 00019 // 00020 // You should have received a copy of the GNU General Public License 00021 // along with Spot; see the file COPYING. If not, write to the Free 00022 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00023 // 02111-1307, USA. 00024 00027 #ifndef SPOT_LTLAST_REFFORMULA_HH 00028 # define SPOT_LTLAST_REFFORMULA_HH 00029 00030 #include "formula.hh" 00031 00032 namespace spot 00033 { 00034 namespace ltl 00035 { 00036 00039 class ref_formula : public formula 00040 { 00041 protected: 00042 virtual ~ref_formula(); 00043 ref_formula(opkind k); 00044 void ref_() const; 00045 bool unref_() const; 00047 unsigned ref_count_() const; 00048 private: 00049 mutable unsigned ref_counter_; 00050 }; 00051 00052 } 00053 } 00054 00055 #endif // SPOT_LTLAST_REFFORMULA_HH